<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>短信定价列表</a></li>
        <li class=""><a href="{:url('admin/item/add_text')}">添加短信价格</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('admin/item/textprice')}">
        <!-- 用户ID：
        <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
               placeholder="请输入用户ID"> -->
               名称：
        <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
               placeholder="用户名/昵称/邮箱/手机">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('admin/device/index')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>商品名称</th>
                <th>套餐规格(条)</th>
                <!-- <th>套餐数量</th> -->
                <th>套餐价格</th>
                <!-- <th>订单金额</th> -->
                <!-- <th>状态</th> -->
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.specifi}</td>
                    <!-- <td>{$vo.number}</td> -->
                    <td>{$vo.price}</td>
              <!--       <td>

<switch name="vo.status">
    <case value="0">已禁用</case>
    <case value="1">已启用</case>
    <default />未知状态
</switch>

</td> -->
                    <td>
                        <a href="{:url('admin/item/edititem',array('id'=>$vo['id']))}"
                           class="js-ajax-btn"
                           data-msg="">编辑</a>
                        <a href="{:url('admin/item/deleteitem',array('id'=>$vo['id']))}"
                           class="js-ajax-dialog-btn"
                           data-msg="">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>